package com.tyk.bookstore.back.auth.service;

import com.tyk.bookstore.back.auth.model.query.CodeLoginQuery;
import com.tyk.bookstore.back.auth.model.query.PasswordLoginQuery;
import com.tyk.bookstore.back.auth.model.query.SendMsgCodeQuery;

public interface LoginService {

    /**
     * 密码登录
     */
    String loginByPwd(PasswordLoginQuery query);

    /**
     * 发送验证码
     *
     * @return 消息验证码凭证
     */
    String sendMsgCode(SendMsgCodeQuery query);

    /**
     * 验证码登录
     */
    String loginByCode(CodeLoginQuery query);

}
